package org.example.constants;

import java.util.Arrays;
import java.util.List;

/**
 * @author huangy
 * @description 常量类
 * @since 2022/11/9 19:05
 **/
public class Constants {

    /**
     * rocketMq常量
     */
    public interface RocketMqConstants {
        /**
         * tag名称
         */
        //测试tag
        String TAG_TEST = "tagTest";

        /**
         * 标签类型
         */
        //用户
        String TAG_TYPE_USER = "USER_MESSAGE";
        //战斗
        String TAG_TYPE_COMBAT = "COMBAT_MESSAGE";
        //房间
        String TAG_TYPE_ROOM = "ROOM_MESSAGE";

        /**
         * 消费者group
         */
        //用户
        String GROUP_USER = "user";
        //房间
        String GROUP_ROOM = "room";
        //战斗
        String GROUP_COMBAT = "combat";

        //标签集合
        List<String> TAGS = Arrays.asList(TAG_TYPE_USER, TAG_TYPE_COMBAT, TAG_TYPE_ROOM);

        /**
         * 房间类型
         */
        //正常房间
        int ROOM_TYPE_NORMAL = 1;
        //高级房间
        int ROOM_TYPE_SENIOR = 2;
        //vip房间
        int ROOM_TYPE_VIP = 3;

        /**
         * 房间类型
         */
        List<Integer> ROOM_TYPES = Arrays.asList(ROOM_TYPE_NORMAL, ROOM_TYPE_SENIOR, ROOM_TYPE_VIP);

    }

}
